/**
 * FileName: SafeItem.java
 * @Description: TODO(用一句话描述该文件做什么)
 * All rights Reserved, Designed By 21winmess
 * Copyright: Copyright(C) 2010-2011 
 * Company 21winmess DaLian LTD.
 * @author: Matrix xu
 * @version V2.0
 * Createdate: 2012-12-10 下午4:16:15
 *
 * Modification History:
 * Date Author Version Discription
 * -----------------------------------------------------------------------------------
 * 2012-12-10 Qute_Android2.0
 * Why & What is modified: <修改原因描述>
 */
package com.me.safebox.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ClassName: SafeItem
 * @Description:私密文件夹存储类目,可扩展为,图片、视频、音频等
 * @author: Matrix
 * @date: 2012-12-10 下午4:16:15
 * 
 */
public class SafeFile extends IdEntity implements Parcelable{
	public String encrptFilePath;//加密后的文件路径,包括文件名
	public int fileType;//文件类型
	public String sourceDir;//源文件所在目录
	public String sourceName;//源文件名称，包括后缀名
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(encrptFilePath); 
	}
	
	 public static final Parcelable.Creator<SafeFile> CREATOR = new Parcelable.Creator<SafeFile>() {   
		//重写Creator
		  
		        @Override  
		        public SafeFile createFromParcel(Parcel source) {   
		        	SafeFile p = new SafeFile();   
		            p.encrptFilePath=source.readString();   
		            return p;   
		        }   
		  
		        @Override  
		        public SafeFile[] newArray(int size) {   
		            return null;   
		        }   
		    };   
}
